import http from '../utils/request.ts'

//获取轮播列表
function lunbo() {
  return http({
    url: '/admin/banner/list',
    // params: { token },
  })
}

//轮播删除
function lunboDelRequest(bannerid: string) {
  return http({
    method: 'get',
    url: '/admin/banner/delete' + bannerid,
  })
}
//发布轮播数据
function lunboAddRequest(obj: object) {
  return http({
    method: 'post',
    url: '/admin/banner/add',
    data: obj
  })
}
export { lunbo, lunboDelRequest, lunboAddRequest }
